package com.qingke.easyjava.jdbc.pojo;

import java.util.ArrayList;
import java.util.List;

public class Player {

    private long id;
    private String username;
    private String nickname;
    private int score;
    private String password;

    private List<Question> questions;
    private List<Answer> answers;
    
    public Player() {
    	
    }
    
    public Player(String username, String password, String nickname){
    	this.username = username;
    	this.password = password;
    	this.setNickname(nickname);
    }
    
    
    public Player(int id,String username,int score,String password,String nickname) {
    	this.id = id;
    	this.username = username;
    	this.score = score;
    	this.password = password;
    	this.nickname = nickname;
    }
    
    public Player(long id, String username, int score) {
        this.id = id;
        this.username = username;
        this.score = score;
        
        this.questions = new ArrayList<Question>();
        this.answers = new ArrayList<Answer>();
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

   
    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public List<Question> getQuestions() {
        return questions;
    }

    public void setQuestions(List<Question> questions) {
        this.questions = questions;
    }

    public List<Answer> getAnswers() {
        return answers;
    }

    public void setAnswers(List<Answer> answers) {
        this.answers = answers;
    }

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

}
